<?php

namespace system\core;

//	use helper\struct as struct;

Abstract class validator
{

	private $definitionfile;
	protected $struct;

	function setDefinition($file)
	{
		$this->definitionfile = $file;
	}

	/**
	 * Function to load basic definition.
	 */
	//@TODO rewrite to a more open and flexible way. htmltags should be rewritten to markuptags or similar
	protected function load_definition()
	{
		if( !isset($this->struct) )
		{
			$this->struct = new struct();
			$this->struct->preset_from_file($this->definitionfile);
		}
	}

}

?>
